<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>4拼团-订单详情</title>
<link  href="/pintuan/Public/Wechat/api/css/style.css" rel="stylesheet"  type="text/css">
</head>

<body bgcolor="#f5f5f5">
<div class="header">
	<h1>订单详情</if></h1>
    <a href="javascript:history.back()" class="arrow-wrap"><em class="arrow-left"></em></a>
    <a href="?s=/Vip/index"><img src="/pintuan/Public/Wechat/api/images/me1.png"></a>
</div>
<div class="pd10 orderdetail">
	<div class="section1 bgfff pr">
    	<ul>
        	<li>订单状态：<i>
	        	<?php if($order["status"] == 2): ?>已付款
	        		<?php elseif($order["status"] == 3): ?>已发货
	        		<?php elseif($order["status"] == 4): ?>已完成
	        		<?php elseif($order["status"] == 8): ?>已过期
	        		<?php elseif($order["status"] == 7): ?>已退款
	        		<?php elseif($order["status"] == 6): ?>退款中<?php endif; ?>
        	</i></li>
            <li>下单时间：<?php echo ($order["createtime"]); ?></li>
            <li>订单号：<?php echo ($order["ordernumber"]); ?></li>
        </ul>
        <?php if($order["status"] == 2): ?><div class="btn"><a href="?s=/Vip/refundreason/id/<?php echo ($order["id"]); ?>">退款</a></div>
        	<?php elseif($order["status"] == 3): ?><div class="btn"><a href="?s=/Vip/shopconfirm/id/<?php echo ($order["id"]); ?>">确认收货</a></div>
        	<?php elseif($order["status"] == 8): ?><div class="btn"><a href="?s=/Vip/refundreason/id/<?php echo ($order["id"]); ?>">退款</a></div>
        	<?php else: ?>&nbsp;<?php endif; ?>
    </div>
    <div class="section2 bgfff">
    	<dl class="clearfix">
        	<dt><img src="<?php echo ($order["coverimg"]); ?>"></dt>
            <dd><span><?php echo ($order["productname"]); ?></span></dd>
            <dd>￥<?php echo ($order["price"]); ?> X <?php echo ($order["buynumber"]); ?></dd>
            <dd><em><i>总价：</i>￥<?php echo ($order["totalprice"]); ?></em></dd>
        </dl>
    </div>
    <div class="section3 bgfff">
    	<ul>
        	<li><i>商品总额：</i><em>￥<?php echo ($order["totalprice"]); ?></em></li>
            <li><i>运费：</i><em>￥0.00</em></li>
            <li><i>订单总额：</i><em>￥<?php echo ($order["totalprice"]); ?></em></li>
        </ul>
    </div>
    <div class="section4 bgfff">
    	<dl>
        	<dt>收货人信息</dt>
            <dd>收件人：<?php echo ($address["linkman"]); ?>  <?php echo ($address["linktel"]); ?></dd>
            <dd><i><?php echo ($address["area"]); echo ($address["address"]); ?></i></dd>
        </dl>
    </div>
</div>

</body>
</html>